<include file="public@header"/>
</head>
<body>
<div class="wrap js-check-wrap">
	<ul class="nav nav-tabs">
		<li><a href="{:url('AdminPrice/index')}">{:lang('ADMIN_PRICE_INDEX')}</a></li>
		<li class="active"><a href="{:url('AdminPrice/add')}">{:lang('ADMIN_PRICE_ADD')}</a></li>
		<!--<li><a  href="{:url('nav/edit')}" >{:lang('ADMIN_NAV_EDIT')}</a></li>-->
	</ul>
	<form method="post" class="form-horizontal js-ajax-form margin-top-20" action="{:url('AdminPrice/addPost')}">

		<div class="form-group">
			<label class="col-sm-2 control-label"><span class="form-required">*</span>策略名称:</label>
			<div class="col-md-6 col-sm-10">
				<input type="text" class="form-control" name="name" value="" placeholder="请输入策略名称">
			</div>
		</div>
		<div class="form-group">
			<label class="col-sm-2 control-label"><span class="form-required">*</span>内容（元）:</label>
			<div class="col-md-6 col-sm-10">
				<input type="number" class="form-control" name="piece" value="" style="width:42%;float:left" placeholder="请输入国际运程单价">
				<span style="float:left;line-height:36px;">/kg&nbsp;+&nbsp;</span>
				<input type="number" class="form-control" name="price" value="" style="width:42%;float:left" placeholder="请输入境内快递单价">
				<span style="float:left;line-height:36px;">/kg</span>
			</div>
		</div>
		<div class="form-group">
			<label class="col-sm-2 control-label">状态:</label>
			<div class="col-md-6 col-sm-10">
				<select name="status" class="form-control">
					<foreach name="arrStatus" key="k" item="vo">
						<option value="{$k}" >{$vo}</option>
					</foreach>
				</select>
			</div>
		</div>
		<div class="col-sm-offset-2 col-sm-10">
			<button type="submit" class="btn btn-primary js-ajax-submit">{:lang("SAVE")}</button>
			<a class="btn btn-default" href="__URL__">返回</a>
		</div>
	</form>

</div>
<script src="__STATIC__/js/admin.js"></script>
<script>
    $(document).on("click",".item-place .del_item",function(){
        $(this).parent().parent().remove();
    });

    function confirm() {
    	var price = $('price').val();
    	var union = $('union').val();
        var html = '<tr><td>'+union+'</td><td>'+price+'/kg</td><td><a class="del_item btn btn-danger btn-sm" href="javascript:;">x</a></td><input type="hidden" name="price[]" value="'+price+'"><input type="hidden" name="union[]" value="'+union+'"></tr>';
        $('').append(html);
    }
</script>
</body>
</html>